package com.jt.demo51.pp02;

import com.jt.demo51.pp01.Service1;
import com.jt.demo51.pp01.Springconfig1;
import com.jt.demo51.pp01.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Spring {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(Springconfig1.class);
        Service1 user= a.getBean(Service1.class);
        Service1 u=(Service1)JDkproxy.getObject(user);
        u.amazed();
    }
}
